﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace YZAutoDWR.Entity;

[Table("UserConfig")]
public partial class UserConfigEntity : BaseEntity
{
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    public int Id { get; set; }

    [Column("AutoStart")]
    [DisplayName("开机自启")]
    public bool AutoStart { get; set; }

    [Column("AutoSendEmail")]
    [DisplayName("自动发送邮件")]
    public bool AutoSendEmail { get; set; }

    [Column("PlatformUrl")]
    [MaxLength(256)]
    [DisplayName("数据平台地址")]
    public string? PlatformUrl { get; set; }

    [Column("UserAccount")]
    [MaxLength(10)]
    [DisplayName("用户登录名")]
    public string? UserAccount { get; set; }

    [Column("UserPassword")]
    [MaxLength(20)]
    [DisplayName("用户密码")]
    public string? UserPassword { get; set; }

    public override void Initialize()
    {
        Id = 1;
    }
}